<?php

class formularioAluno {
public $voltar = "'voltar','','./imagens/voltar2.png'";
public $home = "'home','','./imagens/home2.png'";
    public function carregar($dados) {
        $temp = explode("§", $dados);
        $apagar = "'apagar','','./imagens/apagar2.png'";
        $salvar = "'salvar','','./imagens/salvar2.png'";
       
        return'<p class="titulo"> Escola T&aacute;tica - CADASTRO DE ALUNO</p>
            <div id="sistema">
            
                <br/>

                <table >
                    <tr>
                        <th  id="campoForm" scope="row">Nome&nbsp;&nbsp;</th>
                        <td><input type="text" id="nome"  onBlur="verifica(' . "'nome'" . ')" value="' . $temp[0] . '" /></td>

                        <td><input type="text" id="cpf" maxlength="14" onkeypress ="return mascaracpf(this, event);" onBlur="verifica(' . "'cpf'" . ')"value="' . $temp[1] . '"/></td>
                        <th id="campoForm2" scope="row">&nbsp;&nbsp;CPF</th>


                    </tr>
                    <tr>
                        <th  id="campoForm" scope="row">RG&nbsp;&nbsp;</th>
                        <td><input type="text" id="drg" maxlength="11" onkeypress="return mascararg(this, event);"onblur=" verifica(' . "'drg'" . ')"value="' . $temp[2] . '"/></td>

                        <td><input type="text" id="datanas"maxlength="10" onkeypress="return mascaradata(this, event);"onblur=" verifica(' . "'datanas'" . ')"value="' . $temp[3] . '"/></td>
                        <th  id="campoForm2" scope="row">&nbsp;&nbsp;Data de Nascimento</th>


                    </tr>
                    <tr>

                        <th  id="campoForm" scope="row">E-mail&nbsp;&nbsp;</th>
                        <td><input type="text" id="email" onblur=" verifica(' . "'email'" . ')"value="' . $temp[4] . '"/></td>

                        <td><input type="text" id="telefone" maxlength="16" onkeypress="return mascaratelefone(this, event);" onblur=" verifica(' . "'telefone'" . ')"value="' . $temp[5] . '"/></td>
                        <th  id="campoForm2" scope="row">&nbsp;&nbsp;Telefone</th>


                    </tr>
                    <tr>
                        <th  id="campoForm" scope="row">Rua&nbsp;&nbsp;</th>
                        <td><input type="text" id="rua"onblur=" verifica(' . "'rua'" . ')"value="' . $temp[6] . '"/></td>

                        <td><input type="text" id="numero" onblur=" verifica(' . "'numero'" . ')"value="' . $temp[7] . '"/></td>
                        <th  id="campoForm2" scope="row">&nbsp;&nbsp;N&uacute;mero</th>


                    </tr>
                    <tr>
                        <th  id="campoForm" scope="row">Complemento&nbsp;&nbsp;</th>
                        <td><input type="text" id="complemento" onblur=" verifica(' . "'complemento'" . ')"value="' . $temp[8] . '"/></td>

                        <td><input type="text" id="bairro"onblur=" verifica(' . "'bairro'" . ')"value="' . $temp[9] . '"/></td>
                        <th  id="campoForm2" scope="row" align="left">&nbsp;&nbsp;Bairro</th>


                    </tr>
                    <tr>
                        <th  id="campoForm" scope="row">Cidade&nbsp;&nbsp;</th>
                        <td><input type="text" id="cidade"onblur=" verifica(' . "'cidade'" . ')"value="' . $temp[10] . '"/></td>

                        <td><input type="text" id="cep" maxlength="10" onkeypress="return mascaracep(this, event);" onblur=" verifica(' . "'cep'" . ')"value="' . $temp[11] . '"/></td>
                        <th  id="campoForm2" scope="row" align="left">&nbsp;&nbsp;CEP</th>



                    </tr>
                    <tr>

                       <td colspan="4" align="center"><p ><b id="erro"></b></p></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;<INPUT TYPE="hidden" id="pass" value=""/></td>
                        <td>&nbsp;<INPUT TYPE="hidden" id="conpass" value=""/></td>

                    </tr>
                     <tr>

                       <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td> 
                        <td>&nbsp;</td>

                    </tr>
                    <tr>

                        <td colspan="4" align="CENTER" id="botao"> <a  href="#" onclick="limparForm()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $apagar . ',1)" title="Limpar Campos" ><img src="./imagens/apagar.png" name="apagar" border="0"   class="botaform"/></a>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   <a  href="#" onclick="gravarDados(' . "'aluno','gravar','" . $temp[12] . '§' . $temp[13] . "'" . ')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $salvar . ',1)" title="Salvar Dados" ><img src="./imagens/salvar.png" name="salvar" border="0"   class="botaform"/></a></td>

                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>

                    </tr>



                </table>
                <table class="menu">
                    <tr>
                        <td><a  href="#" onclick="opcao(' . "'aluno',''" . ')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $this->voltar . ',1)"><img src="./imagens/voltar1.png" name="voltar" border="0"   class="botaomenusub"/></a></td>
                        <td><a  href="#" onclick="inicio()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $this->home . ',1)"><img src="./imagens/home.png" name="home" border="0"   class="botaomenusub"/></a></td>
                    </tr>

                </table>
                </div>';
    }

    public function importar() {
        return '
            <p class="titulo"> Escola T&aacute;tica - IMPORTAR ALUNO</p>
            <div id="sistema"><br>
           <br>
<input type="text" id="arquivo" />
<input type="button" value="Importar Aluno" onclick="carregarxml()"> 
<table class="menu">
                    <tr>
                        <td><a  href="#" onclick="opcao(' . "'aluno',''" . ')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $this->voltar . ',1)"><img src="./imagens/voltar1.png" name="voltar" border="0"   class="botaomenusub"/></a></td>
                        <td><a  href="#" onclick="inicio()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(' . $this->home . ',1)"><img src="./imagens/home.png" name="home" border="0"   class="botaomenusub"/></a></td>
                    </tr>

                </table>
</div>';
    }

}

?>
